package com.gitee.chili.leisure.core;

import com.gitee.chili.leisure.model.MessageCmdEnum;

/**
 * MessageHandlerRegistry
 *
 * @author week solider
 * @since 2020.09.04
 */
public interface MessageHandlerRegistry {

    /**
     * 注册消息处理器
     */
    void register(MessageCmdEnum.Command cmd, MessageHandler messageHandler);

    /**
     * 获取消息处理器
     */
    MessageHandler getHandler(MessageCmdEnum.Command cmd);
}
